// export default {
//     install(Vue) {
//         Vue.prototype.$testUtil = function() {
//             return '123'
//         }
//     }
// }
exports.getFullDate = time => {
    if (!parseInt(time))
        return ''
    let date = new Date(parseInt(time) * 1000);
    let year = date.getFullYear()
    let month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1;
    let day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate();
    let hours = date.getHours() < 10 ? `0${date.getHours()}` : date.getHours();
    let minutes =
        date.getMinutes() < 10
            ? `0${date.getMinutes()}`
            : date.getMinutes();
    let second = date.getSeconds() < 10 ? `0${date.getSeconds()}` : date.getSeconds();
    return `${year}-${month}-${day} ${hours}:${minutes}:${second}`;
}